Simplify last commit
authorJustin Burkett <justin@burkett.cc>
Sat, 8 Feb 2020 03:40:28 +0000 (22:40 -0500)
committerJustin Burkett <justin@burkett.cc>
Sat, 8 Feb 2020 03:40:28 +0000 (22:40 -0500)
which-key.el

index e0b30de8895b0e0888cebeb0f55e28d4d5df259d..312272c6b7b26cddc6953b999dfb52be06049f37 100644 (file)
@@ -1329,7 +1329,7 @@ width) in lines and characters respectively."
      ((not which-key-sort-uppercase-first)
       (let ((aup (not (string-equal da a)))
             (bup (not (string-equal db b))))
-        (if (or (and aup bup) (and (not aup) (not bup)))
+        (if (eq aup bup)
             (string-lessp a b)
           bup)))
      (t (string-lessp a b)))))